#include <stdio.h>

/**
  * shows how to change the environment
  * note: calls "env" to display its new settings
  */

extern char **environ;

int main() {
	char *table[3];

	table[0] = "TERM=vt100";
	table[1] = "HOME=/on/the/range";
	table[2] = 0;

	environ = table;

	execlp("env", "env", NULL);		// exec a program
}
